﻿using SIG.InputModel.Validation;
using SIG.Resources.Front;
using System.ComponentModel.DataAnnotations;

namespace SIG.InputModel.Front.Shipping
{
    public class RecipientInfoIM
    {
        public int Id { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Province")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]      
        public int ProvinceId { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "City")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public int? CityId { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "District")]      
        public int? DistrictId { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Address")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public string Address { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Postcode")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public string Postcode { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Recipient")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public string Recipient { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Mobile")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        [ChinaMobile]
        public string Mobile { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Phone")]      
        [ChinaPhone]
        public string Phone { get; set; }
       
    }
}
